import request from '@/utils/request'

export function findDetail() {
    return request({
        url: '/setInfos',
        method: 'get',
    })
}

export function save(data) {
    console.log("======data",data);
    if(data.id ==null){
        return request({
            url: '/setInfos/',
            method: 'post',
            data: data,
        })
    }else{
        return request({
            url: '/setInfos/'+data.id,
            method: 'put',
            data: data,
        })
    }
}